AC_INIT([guishell], [0.1], [jim@jimrandomh.org])
AM_INIT_AUTOMAKE([-Wall])
AC_PROG_CXX
AC_PROG_YACC

AC_CHECK_LIB(pthread, pthread_mutex_init, THREAD_LIBS="-lpthread",
	AC_MSG_ERROR(pthread library needed!))
AC_CHECK_LIB(util, openpty, THREAD_LIBS="-lutil",
	AC_MSG_ERROR(openpty needed!))

AC_CONFIG_HEADERS([config.h])

AC_CONFIG_FILES([Makefile shell/Makefile frontend/Makefile term/guiterm.pro])

AC_OUTPUT

